using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaHuan.Common;
using BaHuan.Entities;
using BaHuan.DataLayer;
/*
 * There are many processes that handle the flows of data
 * we call them business logic of a program.
 * For each of business logic process we create a class 
 * that handle for that process
 * 
 * */
namespace BaHuan.BusinessLayer
{
	
	public class KiemSoatLien3Management
	{
	
		public ResultObj SaveNewKiemSoatLien3(KiemSoatLien3 kiemsoatlien3)
        		{
			ResultObj result = new ResultObj();
			kiemsoatlien3.Id = -1;
			KiemSoatLien3DAO kiemsoatlien3DAO = new KiemSoatLien3DAO();
			result = kiemsoatlien3DAO.SaveKiemSoatLien3(kiemsoatlien3);
			
			return result;
		}
		
		public ResultObj UpdateKiemSoatLien3(KiemSoatLien3 kiemsoatlien3)
        		{
			ResultObj result = new ResultObj();
			KiemSoatLien3DAO kiemsoatlien3DAO = new KiemSoatLien3DAO();
			result = kiemsoatlien3DAO.SaveKiemSoatLien3(kiemsoatlien3);
			
			return result;
		}
		
		public ResultObj DeleteKiemSoatLien3(KiemSoatLien3 kiemsoatlien3)
        		{
			ResultObj result = new ResultObj();
			KiemSoatLien3DAO kiemsoatlien3DAO = new KiemSoatLien3DAO();
			result = kiemsoatlien3DAO.DeleteKiemSoatLien3(kiemsoatlien3);
			
			return result;
		}
		
		public ResultObj GetAllKiemSoatLien3( )
        		{
			ResultObj result = new ResultObj();
			KiemSoatLien3DAO kiemsoatlien3DAO = new KiemSoatLien3DAO();
			result = kiemsoatlien3DAO.GetAllKiemSoatLien3();
			
			return result;
		}
		
		public ResultObj GetKiemSoatLien3ById(KiemSoatLien3 kiemsoatlien3)
        		{
			ResultObj result = new ResultObj();
			KiemSoatLien3DAO kiemsoatlien3DAO = new KiemSoatLien3DAO();
			result = kiemsoatlien3DAO.GetAllKiemSoatLien3ByID(kiemsoatlien3);
			
			return result;
		}
					
	}
}
